<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport"
      content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<meta name="format-detection" content="telephone=no">
<title>Title</title>
</head>
<body>
<table class="table table-bordered">
    <caption>&nbsp;</caption>
    <caption>
        交易统计
    </caption>
    <thead>
    <tr>
        <th colspan="4">统计区间{$wtime}--{$ntime}</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>交易笔数：{$bcount}</td>
        <td>已支付笔数：{$bycount}</td>
        <td>已完成：{$bywcount}</td>
        <td>未完成：{$bwwcount}</td>
    </tr>
    <tr>
        <td colspan="2">交易金额：{$bcount2};&nbsp;&nbsp;余额支付：{$yycount}</td>
        <td>已支付：{$bycount2}</td>
        <td>未支付：{$bwcount2}</td>
    </tr>

    </tbody>
</table>
</div>
<div id="orderlist">
    <div class="well">
        <table class="table table-striped" id="tab" data-sortable>
            <thead>
            <tr>
                <th>#</th>

                <th>电话</th>
                <th>人数</th>
                <th>出发地</th>
                <th>目的地</th>
                <th>价格</th>
                <th>支付状态</th>
                <th>预约时间</th>
                <th style="width: 30px;">下单时间</th>
            </tr>
            </thead>
            <tbody>
            <volist name="list" id="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td width='60px;'>{:get_usertel($vo['openid'])}</td>

                    <td width='50px;'>{$vo.num}</td>
                    <td width='150px;'>{$vo.start}</a> </td>
                    <td width='150px;'>{$vo.end}</td>
                    <td>{$vo.price}</td>



                    <td>
                        <if condition="$vo['pay_statu'] eq '0'"><font color="red">未支付</font>
                            <elseif condition="$vo['pay_statu'] eq '1'"/>
                            <font color="#7cff00"> <if condition="$vo.is_ypay eq 1">余额支付<else />微信支付</if></font>
                        </if>
                    </td>
                    <td>{$vo['starttime']}</td>
                    <td>
                        {$vo['addtime']|date='Y-m-d H:i:s',###}
                    </td>
                </tr>

            </volist>

            </tbody>
        </table>
</body>
</html>